import { defineAsyncComponent, markRaw } from 'vue'

const modules = import.meta.glob('/src/views/customform/**.vue')


export const openCustomForm = (formPath) => {
    if(formPath == null || formPath == ""){ 
        return
    }
    const formPathStr = `/src/views/customform/${formPath}`;
    return  defineAsyncComponent(modules[formPathStr]) ;
}